package com.gitee.ricesugar.mall.model.POJO.DTO;

public class CartItemDTO {
    private int id;
    private String title;
    private String username;
    private int amount;
    private double price;
    private String img;


    public CartItemDTO() {
    }

    public CartItemDTO(int id, String title, String username, int amount, double price, String img) {
        this.id = id;
        this.title = title;
        this.username = username;
        this.amount = amount;
        this.price = price;
        this.img = img;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    @Override
    public String toString() {
        return "ShopDTO{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", username='" + username + '\'' +
                ", amount=" + amount +
                ", price=" + price +
                ", img='" + img + '\'' +
                '}';
    }
}
